<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Netty WebSocket Test</title>
    <style>
        body {
            font-family: Arial, sans-serif;
        }

        #messages {
            margin-top: 10px;
        }
    </style>
</head>
<body>
<h1>Protobuf WebSocket Test</h1>
<div>
<!--    <input type="text" id="messageInput" placeholder="Type a message">-->
    <span>当前血量:</span><span id="healthPoint"></span>
    <br>
    <span>玩家金币:</span><span id="gold"></span>
    <br/>
    <br/>
    <br/>
    <br/>
    <br/>
    <button onclick="shoot(200)">射击</button>
</div>

<br/>
<div id="messages"></div>
<script src="protobuf.min.js"></script>
<!-- proto消息格式写在js文件中 -->
<script src="main.js"></script>
</body>
</html>